

import Vue from 'vue'
import VueRouter from 'vue-router'

import home from '../components/homes/home.vue'
import comments from '../components/homes/comments.vue'
import setting from '../components/setting.vue'
import shopCart from '../components/shopCart.vue'
import person from '../components/person.vue'
import chat from '../components/chats/chat.vue'
import commentInfo from '../components/homes/commentInfo.vue'
import pictures from '../components/homes/pictures.vue'

Vue.use(VueRouter)
var router=new VueRouter({
	routes:[
	{path:'/',redirect:"/home"},
	{path:'/home',component:home},
	
	{path:'/chat',component:chat},
	{path:'/shopCart',component:shopCart},
	{path:'/person',component:person},
	{path:'/setting',component:setting},
	{path:'/home/comments',component:comments},
	{path:'/home/pictures',component:pictures},
	{path:'/home/comments/commentInfo/:id',component:commentInfo},
	],
	linkActiveClass:'mui-active'
})
export default router